<link href="../css/table.css" rel="stylesheet" type="text/css" />

<?php
include "../inc/db.php";
$id_site=$_GET['id_site'];
if(isset($id_site)){
	$sql="select * from tb_site where id_site='$id_site';";
	$hasil=mysql_query($sql);
	$kolom=mysql_fetch_array($hasil);
}
?>
<script type="text/javascript">
function load()
{
window.print(this);
}
</script>

<title>Data Site</title>
<center><h2>Site Mendekati Habis kontrak</h2></center>
<body onload="load()">
<table width="475" class="bordered" align="center" >
  <tr>
    <td width="146">Nama Site</td>
    <td width="4">:</td>
    <td width="318"><?php echo $kolom[1]; ?></td>
  </tr>
  <tr>
    <td>Tanggal Kontrak</td>
    <td>:</td>
    <td><?php echo $kolom[2]; ?></td>
  </tr>
  <tr>
    <td>Tanggal Habis Kontrak</td>
    <td>:</td>
    <td><?php echo $kolom[3]; ?></td>
  </tr>
  <tr>
    <td>Lokasi Site</td>
    <td>:</td>
    <td><?php echo $kolom[4]; ?></td>
  </tr>
  <tr>
    <td>Kota</td>
    <td>:</td>
    <td>
    <?php echo $kolom[5]; ?>
    </td>
  </tr>
  <tr>
    <td>Keterangan 1</td>
    <td>:</td>
    <td><?php echo $kolom[6]; ?></td>
  </tr>
  <tr>
    <td>Keterangan 2</td>
    <td>:</td>
    <td><?php echo $kolom[7]; ?></td>
  </tr>
</table>
</body>
